﻿using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using K9Nano.LayIM.Models;

namespace K9Nano.LayIM.Stores
{
    public interface IChatSessionStore
    {
        ValueTask<string> CreateAsync(string appCode, string userId, CancellationToken cancellation);
        ValueTask<LayIMChatSession> GetAsync(string id, CancellationToken cancellation);
        ValueTask<LayIMChatSession> GetSessionOfUserAsync(string userId, CancellationToken cancellation);
    }
}